﻿namespace WebSilverlight.Views
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ServiceModel.DomainServices.Client;
    using System.Windows;
    using System.Windows.Controls;
    using WebSilverlight.Web;

    public partial class PaisPromptEx : ChildWindow
    {
        #region Properties
            public PaisWrapper Current { get; set; }

        #endregion

            public PaisPromptEx()
        {
            InitializeComponent();
            if (this.dcPaisContext1 == null)
                this.dcPaisContext1 = new PaisDomainContext();   
        }
        private void SelectButton_Click(object sender, RoutedEventArgs e)
        {
            Current = (PaisWrapper)dataGridPais1.SelectedItem;
            Close();
        }
    }
}